package com.hl.sfzy.service.content;

import com.github.pagehelper.PageInfo;
import com.hl.sfzy.entity.content.PublicWelfare;

import java.time.LocalDateTime;
import java.util.List;

public interface PublicWelfareService {

    PageInfo<PublicWelfare> getAll(Integer pageNum, Integer pageSize);

    PublicWelfare getById(Integer id);

    int add(PublicWelfare publicWelfare);

    int update(PublicWelfare publicWelfare);

    int delete(Integer id);

    PageInfo<PublicWelfare> search(String keyword, LocalDateTime start, LocalDateTime endTime, Integer pageNum, Integer pageSize);
}
